<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册页面</title>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<!-- 
<script>
var mydate = new Date();
$(document).ready(function(e) {
   	$("#submit").click(function(e,xhr) {
   	   	var token=$("meta[name='_csrf']").attr("content");
   	 	var header = $("meta[name='_csrf_header']").attr("content");
   	 	
        $.post("/user/insert",{
            token:token,
            name:header,
			username:$("#username").val(),
			password:$("#password").val(),
			email:$("#email").val(),
			enabled:true,
			phonenumber:$("#username").val(),
			regtime:mydate}
			,function(data,status){
		});
    }); 
});

</script>
 -->
</head>
<body>
<table>
<form action="/user/insert" method="post">
<tr>
<td><label for="username">用户名</label></td>
<td><input name="username" id="username" type="text"/></td>
<td><label id="lable_u" for="username"></label></td>
</tr>
<tr>
<td><label for="password">密码</label></td>
<td><input name="password" id="password" type="password"/></td>
<td><label id="lable_p" for="password"></label></td>
</tr>
<tr>
<td><label for="password">重复密码</label></td>
<td><input name="password2" id="password2" type="password"/></td>
<td><label id="lable_p2" for="password2"></label></td>
</tr>
<tr>
<td><label for="email">邮箱</label></td>
<td><input name="email" id="email" type="text"/></td>
<td><label id="lable_e" for="email"></label></td>
</tr>
<tr>
<td><label for="phonenumber">手机号</label></td>
<td><input name="phonenumber" id="phonenumber" type="text"/></td>
<td><label id="lable_pn" for="phonenumber"></label></td>
<td><input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/></td>
</tr>
<tr>
<td><input name="submit" id="submit" type="submit" value="提交"></input></td>
</tr>
</form>
</table>
</body>
</html>
